//
//  LeftMenuTopTableViewCell.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/17.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "LeftMenuTopTableViewCell.h"
#import "UIImage+Circle.h"


@implementation LeftMenuTopTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


+ (instancetype) LeftMenuTopWithTableView:(UITableView *)tableView
{
    static NSString *identifier = @"cell";
    LeftMenuTopTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:@"LeftMenuTopTableViewCell" owner:nil options:nil] lastObject];
    }
    return cell;
}

- (void)setDic:(NSDictionary *)dic
{
    _dic = dic;
    self.head.image = [UIImage imageWithIconName:dic[@"head"] border:1 borderColor:nil];
    self.name.text = dic[@"name"];
}

@end
